package baiqi.sishen.community.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 兕神
 * @version 1.0
 * DateTime: 2023/4/26
 */
@Controller
public class HelloController {

    @GetMapping("/hello")
    public String hello(
            @RequestParam("name") String name,
            Model model) {
        model.addAttribute("name", name);
        return "hello";
    }
}
